﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/admin/admin.master" AutoEventWireup="true" CodeBehind="LabcheckEdit.aspx.cs" Inherits="web.admin.LabcheckEdit" 
    Title="实验室指标修改" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="SubMenu_Item" cellspacing="0" cellpadding="0" width="100%" border="0">
        <tbody>
            <tr>
                <td>
                    <table cellspacing="0" cellpadding="0" border="0">
                        <tbody>
                            <tr>
                                <td class="Current_Item" id="TD2">修改指标</td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>
    
    <table cellspacing="0" cellpadding="0" width="100%" border="0">
        <tbody>
	        <tr>
	            <td>
	                <asp:Label ID="errorMsg" Visible="false" Text="" runat="server" ForeColor="red"/>
                     <asp:DetailsView ID="labcheckInfo" runat="server" AutoGenerateRows="False" SkinID="orange" DataKeyNames="Id" 
                        DefaultMode="Edit"  OnDataBound="DataBound">
                        <Fields>
                            <asp:TemplateField HeaderText="实验室指标名称：" >
                                <EditItemTemplate>
                                    <asp:TextBox ID="name" runat="server" width="150" Text='<%# Eval("Name") %>'/>
                                </EditItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="是否可量化：">
                                <EditItemTemplate>
                                    <asp:RadioButtonList ID="isQuantified" runat="server" AutoPostBack="true" OnSelectedIndexChanged="IsQuantifiedChanged">
                                        <asp:ListItem Text="是" Value="1"/>
                                        <asp:ListItem Text="否" Value="0"/>
                                    </asp:RadioButtonList>
                                </EditItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="量化单位：" >
                                <EditItemTemplate>
                                    <asp:TextBox ID="measurementUtils" runat="server" width="150" Text='<%# Eval("MeasurementUnits") %>'/>
                                </EditItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="正常范围：" >
                                <EditItemTemplate>
                                    从<asp:TextBox ID="normalMin" runat="server" width="20" Text='<%# Eval("NormalMinValue") %>'/>到
                                    <asp:TextBox ID="normalMax" runat="server" width="20" Text='<%# Eval("NormalMaxValue") %>'/>
                                </EditItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="上下限：" >
                                <EditItemTemplate>
                                    最小：<asp:TextBox ID="minValue" runat="server" width="20" Text='<%# Eval("MinValue") %>'/>&nbsp;&nbsp;&nbsp;&nbsp;
                                    最大：<asp:TextBox ID="maxValue" runat="server" width="20" Text='<%# Eval("MaxValue") %>'/>
                                </EditItemTemplate>
                            </asp:TemplateField>                            
                            <asp:TemplateField HeaderText="选项描述：" Visible="false">
                                <EditItemTemplate>
                                    <asp:TextBox ID="choicesDescription" runat="server" width="500" Text='<%# Eval("ChoicesDescription") %>'/>
                                </EditItemTemplate>
                            </asp:TemplateField>                            
                            <asp:TemplateField HeaderText="实验室指标简介：" >
                                <EditItemTemplate>
                                    <asp:TextBox ID="introduction" runat="server" TextMode="MultiLine" width="450" height="50" Text='<%# Eval("Intro") %>'/>
                                </EditItemTemplate>
                            </asp:TemplateField>                             
                            <asp:TemplateField HeaderText="实验室指标描述：">
                                <EditItemTemplate>
                                    <asp:TextBox id="description" runat="server" style="DISPLAY:none" Text='<%# Eval("Desp") %>'></asp:TextBox>
			                        <iframe id="form2" src="../ewebeditor/ewebeditor.htm?id=description&style=coolblue" frameborder="0" scrolling="no" 
			                            width="650" height="350">
			                        </iframe>                                
			                    </EditItemTemplate>
                            </asp:TemplateField> 
                            <asp:TemplateField HeaderText="画图所需信息：" >
                                <EditItemTemplate>
                                </EditItemTemplate>
                            </asp:TemplateField> 
                            <asp:TemplateField HeaderText="坐标刻度值：" >
                                <EditItemTemplate>
                                    <asp:TextBox ID="gridValues" runat="server" width="300" Text='<%# Eval("GridValues") %>'/>&nbsp;&nbsp;各刻度值中间以';'分隔，如：10;20;30
                                </EditItemTemplate>
                            </asp:TemplateField> 
                            <asp:TemplateField HeaderText="短名称：" >
                                <EditItemTemplate>
                                    <asp:TextBox ID="shortName" runat="server" width="50" Text='<%# Eval("ShortName") %>'/>
                                </EditItemTemplate>
                            </asp:TemplateField>                            
                            <asp:TemplateField>
                                 <EditItemTemplate>
                                    <asp:Button ID="UpdateButton" runat="server"  CausesValidation="True" Text="修改" OnClick="UpdateButton_click"/> &nbsp;
                                    <asp:Button ID="UpdateCancelButton" runat="server" CausesValidation="False" Text="取消" OnClick="CancelButton_click"/>
                                </EditItemTemplate>
                            </asp:TemplateField>
                        </Fields>
                    </asp:DetailsView>                   
	            </td>
	        </tr> 	    
	    </tbody>
    </table>	                
</asp:Content>
